* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}

.box {
    width: 150px;
    border: 1px solid red;
}
.box img {
    width: 100%;
}
.box h5 {
    text-align: center;
}
ul {
    display: flex;
    flex-wrap: wrap;
    width: 750px;
    margin: 0 auto;
}

.pageNum {
    display: inline-block;
    height: 20px;
    border: 1px solid blue;
    margin-right: 3px;
    cursor: pointer;
}
.active {
    background-color: red;
    color: white;
}